﻿using BW.MesProject.Production.Domain;
using BW.MesProject.Production.Domain.Dto.Input;
using BW.MesProject.Production.Domain.Dto.Input.WorkOrder;
using BW.MesProject.Production.Domain.Dto.Input.WorkOrderInput;
using BW.MesProject.Public.ErrorCode;
using Models;
using SqlSugar;

namespace BW.MesProject.Production.Infrastructure
{
    public interface IWorkOrderServices
    {
        ApiResult<int> CreateWorkOrder(AddWorkOrderInput input);
        ApiResult<int> UpdateWorkOrder(UpdateWorkorderInput input);
        ApiResult<int> DeleteWorkOrder(int Id);
        ApiPaging<WORKORDERMODEL> GetWorkOrders(PageInput input);
        ApiResult<WORKORDERMODEL> GetWorkOrder(int Id);
        ApiResult<int> SplitWorkOrder(SplitWorkOrderInput input);
    }
}
